Face Comparision

To access

Welcome to use our product. Here are some things you need to know before you start the interface call:

  1. Complete product signing and permission opening;
  2. You need to obtain an appKey and secret.
  3. We provide a demo java python php,for your reference;
  4. Please feel free to contact us if you have any questions.

token description

Write all request parameters and secrets (assigned when opening an account) except tokens in the form of "key=value", sort them by key, and connect them with "&" to get the string str:

String str = "appKey=test_key&idNumber=idNumber&name=name&phone=phone&secret=20200101";

Encrypt str with md5 to get the token:

String token = md5(str);

For details, please refer to calling demo

Interface information

API API information
formal environment http://api.digiscore.id/api/data/aiEkycCheck/handle
sandbox environment http://test-platform.ferrystatic.com/openrisk/api/data/aiEkycCheck/handle

Request parameter

Field type required describe
appKey string yes Unique identifier assigned to the organization
token string yes API request signature, see token description
ktpPhoto string yes ktpPhoto of the user.
photo string yes face photo of the user.

Response parameters

Field type required describe
code int yes error code
msg string yes Error message
data object no See business parameters below for details
isFee int yes 1- charge, 0- free
when "code"=200 or 100401,it is charged.

Business parameters

Field type required describe
similarity string yes Photo face similarity
firstFace object yes The coordinates of ktpPhoto
secondFace object yes The coordinates of photo

Response example

success
{
    "code": 200,
    "msg": "success ",
    "data": {
          "similarity": "79.98849391937";
          "firstFace": {
                    "top": "121.0",
                    "left": "375.6",
                    "bottom": "198.0",
                    "id": "1",
                    "right": "437.8"
            },
           "secondFace": {
                    "top": "114.0",
                    "left": "58.6",
                    "bottom": "223.6",
                    "id": "2",
                    "right": "140.5"
            }
    },
    "isFee": 1
}

error

{
    "code": 11008,
    "msg": "xxxxxxxxx",
    "data": null
    "isFee": 0
}

results matching ""

    No results matching ""